package demo1;

public class Cat extends Animal{
//    public String name;
//    public int age;
//    public void eat() {
//        System.out.println(this.age+"岁的"+this.name+"正在吃");
//    }
//    public void run() {
//        System.out.println(this.age+"岁的"+this.name+"正在跑");
//    }
    public Cat(String name,int age) {
        super(name,age);
        System.out.println("Cat构造方法被调用了");
        //super(name,age);
    }
    public void mew() {
        System.out.println(this.age+"岁的"+this.name+"正在喵喵叫");
    }
}
